<table>
    <tr>
        <td width="15%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="30%">&nbsp;</td>
        <td width="8%">&nbsp;</td>
        <td width="15%">&nbsp;</td>
        <td width="1%">&nbsp;</td>
        <td width="30%">&nbsp;</td>
    </tr>
    <tr>
        <td>DN NO</td>
        <td>:</td>
        <td><?php echo $nomor_dn;?></td>
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>Date</td>
        <td>:</td>
        <td><?php echo $tanggal_dn?></td>
    </tr>
    <tr>
        <td>To</td>
        <td>:</td>
        <td><?php echo $to?>
        </td>
        <td colspan="4">&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td>RF No.</td>
        <td>:</td>
        <td><?php echo $rf_number;?></td> 
        <td>&nbsp;&nbsp;&nbsp;</td>
        <td>QP. NO</td>
        <td>:</td>
        <td><?php echo $nomor_quotation;?></td>
    </tr>
    <tr>
        <td>Delivery To</td>
        <td>:</td>
        <td><?php echo $delivery_to;?></td>
        <td colspan="4">&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td>Location</td>
        <td>:</td>
        <td><?php echo $location;?></td>
        <td colspan="4">&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <tr>
        <td>Subject</td>
        <td>:</td>
        <td><?php echo $subject;?></td>
        <td colspan="4">&nbsp;&nbsp;&nbsp;</td>
    </tr>

    <tr>
        <td colspan="7">
            <br/><br/><br/>

            <table border="1" style="width: 100%; padding: 5px;">
                <thead>
                    <tr class="GridHeader">
                        <td align="center" width="8%">No.</td>
                        <td align="center" width="40%">Description</td>
                        <td align="center" width="15%">Qty</td>
                        <td align="center" width="25%">Check Delivery</td>
                        <td align="center" width="25%">Check Vessel</td>
                    </tr>
                </thead>
                <tbody id="tablebody">
                    <?php 
                        if(is_object($item)){
                        if($item->num_rows() > 0) {
                            $nomor = 1;
                            foreach($item->result() as $row){
                    ?>
                            <tr class="GridItem1">
                                <td align="center"><?php echo $nomor++;?></td>
                                <td><?php echo $row->nama_item?></td>
                                <td><?php echo $row->quantity . " " . $row->satuan_beli?></td>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                    <?php 
                            }
                        } else {
                    ?>
                            <tr class="GridItem1" id="no_item">
                                <td colspan="5">Tidak ada data</td>
                            </tr>
                    <?php
                        }
                        }
                    ?>
                </tbody>
            </table> 
            <br/><br/>
        </td>
    </tr>
    <tr>    
        <td colspan="3" align="center">Checked By</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">Delivered By</td>
    </tr> 
    <tr> 
        <td colspan="7" align="center">&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;</td>
    </tr>
    <tr> 
        <td colspan="3" align="center">(<?php echo $checked_by?>)</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">(<?php echo $delivered_by?>)</td>
    </tr>
    <tr> 
        <td colspan="7" align="center">&nbsp;<br/>&nbsp;<br/>&nbsp;</td>
    </tr>
    <tr>    
        <td colspan="3" align="center">Received By</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">Received By</td>
    </tr> 
    <tr> 
        <td colspan="7" align="center">&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;<br/>&nbsp;</td>
    </tr>
    <tr> 
        <td colspan="3" align="center">(<?php echo $received_by?>)</td>
        <td>&nbsp;</td>
        <td colspan="3" align="center">(<?php echo $received_by_2?>)</td>
    </tr>   
</table>

